package com.lxl.sever1.controller;

import com.lxl.sever1.domain.po.UserPo;
import com.lxl.sever1.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: luoxianliang
 * @Email: 1322342586@qq.com
 * @CreateTime: 2025-08-24
 * @Description: UserController
 * @Version: 1.0
 * @OtherInfo:
 */

@RestController
@RequestMapping("/user")
public class UserController {
    @GetMapping("getUser")
    public Result getUser() {
        UserPo lxl = UserPo.builder().name("lxl").age(18).id(1001).build();
        System.out.println("=============lxl============ ");
        return Result.success(lxl,"请求成功");


    }
}
